package com.nstc.sftpExchange.config.sftp;

import lombok.Data;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
@ConfigurationProperties(prefix = "nstc")
public class SftpConfigProperties {

    private List<SftpConfig> sftp;

    @Data
    public static class SftpConfig {

        private String host;

        private Integer port;

        private String username;

        private String password;

        private Integer connectTimeout;

        private Integer readTimeout;

        private String homeDir;

        private String downloadDir;

        private String name;

        private GenericObjectPoolConfig pool;
    }
}
